home *** CD-ROM | disk | FTP | other *** search
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <meta NAME="Author,Design" Content="GateKeeper Team; gatekeeper@infopulse.net">
- <meta NAME="Copyright" Content="Infopulse; www.infopulse.net">
- <title>Empty</title>
- </head>
-
- <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080">
- <p><big><strong><font face="Arial">Add local IP mask</font></strong></big></p>
-
- <%
-
- if Request.ReqParam("action") = "Add" Then
-
-
- if(Len(Request.ReqParam("oldMask"))>0) then
- Dialer.DeleteLocalAddress 1,Request.ReqParam("oldMask")
- Dialer.AddLocalAddress 1,Request.ReqParam("mask")
- else
- Dialer.AddLocalAddress 1,Request.ReqParam("mask")
- end if
-
- If Not Err.Number = 0 Then
- ErrLine = Err.Description
- else
- Response.Redirect("LocalAddresses.agp?Action=Show")
- End If
- end if
-
- if Request.ReqParam("action") = "Cancel" Then
- Response.Redirect("LocalAddresses.agp?Action=Show")
- end if
-
- oldMask=""
- if Request.ReqParam("action") = "Edit" Then
- oldMask=Request.ReqParam("mask")
- end if
-
-
- %>
-
- <%
- If Not Len(ErrLine) = 0 Then
- Response.Write("<B><FONT COLOR=""#FF0000"">" & ErrLine & "</FONT></B><br>")
- End If
- %>
-
-
- <form method="POST" action= "/services/LocalIp.agp">
-
- <table border="1" cellpadding="0" cellspacing="0" width="60%">
-
- <tr>
- <td width="50%" bgcolor="#183159"><strong><font face="Arial" color="#FFFFFF">
- IP Address mask
- </font></strong></td>
- </tr>
- <tr>
- <td width="50%"><font face="Arial">
- <input type="text" size="40" name= "mask" value= <%Response.Write(oldMask)%> >
- <input type="hidden" size="40" name= "oldMask" value= <%Response.Write(oldMask)%> >
- </td>
- </tr>
-
- </table>
- <br>
- <input type="submit" name="action" value= "Add">
- <input type="submit" name="action" value= "Cancel">
- </form>
-
- <font size="1" face="Arial"><%Response.Write(GateKeeper.Version)%></font>
-
- </body>
- </html>
-